body {
    font-family: 'Inter', 'Microsoft YaHei', Arial, sans-serif;
    background: #f7f9fb;
    margin: 0;
    color: #222;
    font-size: 16px;
    letter-spacing: 0.02em;
}
.header {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 32px;
    height: 64px;
    box-shadow: 0 1px 4px rgba(30, 60, 90, 0.04);
    position: sticky;
    top: 0;
    z-index: 10;
}
.logo {
    width: 38px;
    margin-right: 14px;
}
.title {
    font-size: 24px;
    font-weight: 600;
    margin-right: 40px;
    color: #2563eb;
    letter-spacing: 2px;
}
.nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}
.nav .user {
    margin-left: 24px;
    color: #43a047;
    font-weight: 500;
    font-size: 15px;
}
.sidebar {
    width: 180px;
    background: #f9fafb;
    height: 100vh;
    position: fixed;
    top: 64px;
    left: 0;
    border-right: 1px solid #e5e7eb;
    padding-top: 28px;
    box-shadow: none;
    transition: width 0.2s;
}
.sidebar ul {
    list-style: none;
    padding: 0;
}
.sidebar li {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, font-weight 0.18s;
    border-radius: 12px;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 400;
}
.sidebar li:hover, .sidebar .active {
    background: #e0e7ef;
    color: #2563eb;
    font-weight: 600;
}
.sidebar li a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    transition: color 0.18s;
}
.sidebar li a:hover {
    color: #2563eb;
}
.main {
    margin-left: 200px;
    padding: 40px 40px 32px 40px;
    min-height: 100vh;
    background: #f7f9fb;
    transition: padding 0.2s;
}
.card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(30, 60, 90, 0.06);
    padding: 36px 32px 28px 32px;
    margin-bottom: 32px;
    transition: box-shadow 0.18s, border-radius 0.18s;
    border: 1px solid #f1f5f9;
}
.card:hover {
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.08);
    border-radius: 24px;
}
.flex-row {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}
.flex-col {
    flex: 1;
    min-width: 320px;
}
.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.stats .stat {
    flex: 1;
    background: #f3f6fa;
    border-radius: 16px;
    padding: 22px 0 14px 0;
    text-align: center;
    box-shadow: 0 1px 4px rgba(30, 60, 90, 0.04);
    border: 1px solid #f1f5f9;
    min-width: 160px;
}
.stats .stat .num {
    font-size: 32px;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 4px;
}
.chart-area {
    height: 320px;
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(30, 60, 90, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}
input[type="text"], input[type="number"], input[type="date"], select {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 16px;
    outline: none;
    transition: border 0.18s, box-shadow 0.18s;
    font-size: 15px;
    background: #f8fafc;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* 专门美化下拉框 */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
    min-width: 200px;
}

select:hover {
    border-color: #d1d5db;
    background-color: #f1f5f9;
}

select:focus {
    border: 1.5px solid #2563eb;
    background: #fff;
    box-shadow: 0 0 8px #e0e7ef;
}

/* 下拉框选项样式 */
select option {
    padding: 8px 12px;
    background: #fff;
    color: #374151;
    font-size: 14px;
}

select option:hover {
    background: #f3f4f6;
}

input[type="text"]:focus, input[type="number"]:focus, input[type="date"]:focus, select:focus {
    border: 1.5px solid #2563eb;
    background: #fff;
    box-shadow: 0 0 8px #e0e7ef;
}
button {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 10px 28px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, border-radius 0.18s;
    box-shadow: 0 1px 4px rgba(30, 60, 90, 0.04);
    font-weight: 500;
    letter-spacing: 0.04em;
}
button:hover {
    background: #1746a2;
    box-shadow: 0 4px 16px #c7d7f7;
    border-radius: 18px;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 10px;
    font-size: 15px;
}
th, td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}
th {
    background: #f3f6fa;
    color: #2563eb;
    font-weight: 600;
}
tr:nth-child(even) td {
    background: #f7f9fb;
}
tr:last-child td {
    border-bottom: none;
}
@media (max-width: 900px) {
    .main {
        padding: 12px;
    }
    .flex-row {
        flex-direction: column;
        gap: 12px;
    }
    .sidebar {
        width: 70px;
        font-size: 12px;
    }
    .main {
        margin-left: 80px;
    }
}
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 8px 8px;
    }
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        box-shadow: none;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding-top: 0;
    }
    .sidebar ul {
        display: flex;
        flex-direction: row;
        width: 100%;
    }
    .sidebar li {
        border-radius: 0;
        margin-bottom: 0;
        padding: 10px 8px;
        min-width: 80px;
        font-size: 12px;
    }
    .main {
        margin-left: 0;
        padding: 6px;
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 扫描器样式 */
#scanner-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

#scanner {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#scanner-status {
    margin-top: 10px;
    text-align: center;
    color: #666;
}

/* 表单样式 */
form div {
    margin-bottom: 15px;
}

form label {
    display: inline-block;
    width: 100px;
    text-align: right;
    margin-right: 10px;
}

form input,
form select {
    width: 200px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

form button {
    margin: 10px 5px;
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
}

form button[type="button"] {
    background-color: #f44336;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f5f5f5;
}

button {
    padding: 5px 10px;
    margin: 0 5px;
    border: none;
    border-radius: 3px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
}

button:hover {
    opacity: 0.8;
} 